package com.chaoyi.dao.mysql;

import com.chaoyi.model.ChannelSwitch;
import com.chaoyi.model.Classification;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Auther: 卜加超
 * @Date: 2019/1/3 10:09
 * @Description:
 */
public interface ChannelSwitchMapper {

    int getCount(@Param("obj")ChannelSwitch channelSwitch);

    List<ChannelSwitch> getList(@Param("pageStat")int offset,
                                @Param("pageStop")int limit,
                                @Param("obj")ChannelSwitch channelSwitch);

    int save(@Param("obj")ChannelSwitch entity);

    ChannelSwitch selectChannelSwitchOne(@Param("id")int id);

    int edit(@Param("obj")ChannelSwitch entity);

    int deleteChannelSwitch(@Param("id")int id);

    ChannelSwitch selectChannelSwitchByChannel(@Param("channelId")String channelId);
}
